package com.ruoyi.project.warehouseSystem.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 配件信息对象 component
 * 
 * @author wangshuo
 * @date 2021-01-22
 */
public class Component extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 配件编号 */
    @Excel(name = "配件编号")
    private String compSn;

    /** 配件名称 */
    @Excel(name = "配件名称")
    private String compName;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long classifyId;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private String classifyName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String sku;

    /** 厂商 */
    @Excel(name = "厂商")
    private String manufacturer;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brandName;

    /** 单价 */
    @Excel(name = "单价")
    private String price;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifyBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModify;

    /** 备选字段1 */
    @Excel(name = "备选字段1")
    private String field1;

    /** 备选字段2 */
    @Excel(name = "备选字段2")
    private String field2;

    /** 备选字段2 */
    @Excel(name = "备选字段2")
    private List<Long> classifyIds;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public Long getId()
    {
        return id;
    }
    public void setCompSn(String compSn) 
    {
        this.compSn = compSn;
    }

    public String getCompSn() 
    {
        return compSn;
    }
    public void setCompName(String compName) 
    {
        this.compName = compName;
    }

    public String getCompName() 
    {
        return compName;
    }
    public void setClassifyId(Long classifyId) 
    {
        this.classifyId = classifyId;
    }

    public Long getClassifyId() 
    {
        return classifyId;
    }
    public void setSku(String sku) 
    {
        this.sku = sku;
    }

    public String getSku() 
    {
        return sku;
    }
    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }
    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setModifyBy(String modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public String getModifyBy() 
    {
        return modifyBy;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(Date gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public Date getGmtModify() 
    {
        return gmtModify;
    }
    public void setField1(String field1) 
    {
        this.field1 = field1;
    }

    public String getField1() 
    {
        return field1;
    }
    public void setField2(String field2) 
    {
        this.field2 = field2;
    }

    public String getField2() 
    {
        return field2;
    }

    public List<Long> getClassifyIds() {
        return classifyIds;
    }

    public void setClassifyIds(List<Long> classifyIds) {
        this.classifyIds = classifyIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("compSn", getCompSn())
            .append("compName", getCompName())
            .append("classifyId", getClassifyId())
            .append("sku", getSku())
            .append("manufacturer", getManufacturer())
            .append("brandName", getBrandName())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("unit", getUnit())
            .append("createBy", getCreateBy())
            .append("modifyBy", getModifyBy())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModify", getGmtModify())
            .append("field1", getField1())
            .append("field2", getField2())
            .toString();
    }
}
